package com.xxxx.car.appointment.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xxxx.car.appointment.annotation.isPhone;
import com.xxxx.car.common.annotation.Excel;
import com.xxxx.car.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.Future;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 【请填写功能名称】对象 car_appointment
 * 
 * @author Huang
 * @date 2024-08-23
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AppointmentVo extends BaseEntity{
    private static final long serialVersionUID = 1L;

    private Long id;

    /** 客户名称 */
    @NotBlank(message = "客户名称不能为空")
    private String customerName;

    /** 客户联系方式 */
    @NotBlank(message = "客户联系方式不能为空")
    @isPhone
    private String customerPhone;

    /** 客户预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Future(message = "客户预约时间不正确")
    private Date appointmentTime;

    /** 车牌号码 */
    @NotBlank(message = "车牌号码不能为空")
    private String carNumber;

    /** 汽车类型 */
    @NotBlank(message = "汽车类型不能为空")
    private String carType;

    /** 服务类型 (维修=0 保养=1) */
    @NotNull(message = "服务类型不能为空")
    private Long serviceType;



}
